#ifndef VNSWINSTANCEDMESH_H
#define VNSWINSTANCEDMESH_H

#include <gfx/gl20/mesh/instancedmesh.h>

struct iDevice;
struct iProgram;

/**
 * \addtogroup opengl
 * @{
 */

/**
 * @brief Implementation of the ceInstancedMesh class using the CPU.
 */
class ceInstancedMeshSWGL20 : public ceInstancedMeshGL20
{
  CE_OBJECT
private:
  void BindInstanceData (iProgram *program, unsigned idx);

public:
  ceInstancedMeshSWGL20();

  virtual void Draw (const ceRenderEnvironment& renderEnvironment, iDevice* device);
};

/** @} */


#endif // VNSWINSTANCEDMESH_H
